<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<jsp:include page="head.jsp" />
<body class="page-body  page-fade">
<jsp:include page="nav.jsp" />
 <link rel="stylesheet" href="${pageContext.request.contextPath }/management/assets/css/bootstrap.css">

  <link rel="stylesheet" href="${pageContext.request.contextPath }/management/assets/css/xenon-components.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath }/management/assets/css/custom.css">
  <style>
  *{
    font-family: 微软雅黑;
  }
</style>
     <h1>商品列表</h1>
            <hr>
            <div align="center" class="row">
             <p style="color:red;">${requestScope.Msg }</p>
             <p style="color=red;">${requestScope.errorMsg }</p>  
           <div id="addtype_list" class="row">
      
       <c:forEach items="${requestScope.list }" var="i">
          
       <div class="col-sm-4">
       <div class="xe-widget xe-todo-list xe-todo-list-turquoise">
             <div class="xe-header">
        
                <div class="xe-icon">
               <i class="fa-credit-card"></i>
                            </div>
                       <div class="xe-label">
                       <strong>商品名称： ${i.sname } </strong>
            </div>
          </div>
          <div class="xe-body">
            
            <ul class="list-unstyled">
              <li>
                <label>
              
                  <span>时间： ${i.sdays} 天</span>
                </label>
              </li>
              <li>
                <label>
                  <span>流量： ${i.sll} MB</span>
                </label>
              </li>
              <li>
                <label>
                    <span>价格： ${i.sprice} 元</span>
                </label>
              </li>
              <li>
                <label>
                    <span>说明： ${i.sbz} </span>
                </label>
              </li>
            </ul>
            
          </div>
      <div class="xe-footer">
      <script type="text/javascript">
     
      </script>
     <a onclick="javascript:if(confirm('你确定删除此商品吗？')){window.location.href='${pageContext.request.contextPath}/removeShopServlet?sname=${i.sname}&sid=${i.id}'}"
     target="_blank" type="submit" class="btn btn-white btn-single btn-block" >删除此商品</a></div>
        </div>
      </div>
      </c:forEach>
      
      
</div>
</div>
       

  

<jsp:include page="copy.jsp" />
